/* 
* File: vector_at.cpp
* 测试用例修改自 http://www.cplusplus.com/reference/stl/vector/vector/
* 编译命令：
* 	c++ -Wall -g  -I ../Include/ vector_at.cpp -o vector_at 
* 在这里假设所有的所需的头文件放在../Include里面
*/
#include <iostream>
#define vector Vector
#include "Vector.h"
using namespace std;

int main ()
{
	vector<int> myvector (10);   // 10 zero-initialized ints
	unsigned int i;

	// assign some values:
	for (i=0; i<myvector.size(); i++)
		myvector.at(i)=i;

	cout << "myvector contains:";
	for (i=0; i<myvector.size(); i++)
		cout << " " << myvector.at(i);

	cout << endl;

	return 0;
}
